home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
PInterfaces
/
VideoServices.p
< prev
next >
Wrap
Text File
|
1996-05-01
|
4KB
|
130 lines
{
File: VideoServices.p
Contains: Video Services Library Interfaces.
Version: Technology: PowerSurge 1.0.2
Release: Universal Interfaces 3.0d3 on Copland DR1
Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
Bugs?: If you find a problem with this file, send the file and version
information (from above) and the problem description to:
Internet: apple.bugs@applelink.apple.com
AppleLink: APPLE.BUGS
}
{$IFC UNDEFINED UsingIncludes}
{$SETC UsingIncludes := 0}
{$ENDC}
{$IFC NOT UsingIncludes}
UNIT VideoServices;
INTERFACE
{$ENDC}
{$IFC UNDEFINED __VIDEOSERVICES__}
{$SETC __VIDEOSERVICES__ := 1}
{$I+}
{$SETC VideoServicesIncludes := UsingIncludes}
{$SETC UsingIncludes := 1}
{$IFC UNDEFINED __TYPES__}
{$I Types.p}
{$ENDC}
{$IFC UNDEFINED __NAMEREGISTRY__}
{$I NameRegistry.p}
{$ENDC}
{$IFC UNDEFINED __QUICKDRAW__}
{$I Quickdraw.p}
{$ENDC}
{$PUSH}
{$ALIGN MAC68K}
{$LibExport+}
CONST
kTransparentEncoding = 0;
kInvertingEncoding = 1;
kTransparentEncodingShift = $00;
kTransparentEncodedPixel = $01;
kInvertingEncodingShift = $02;
kInvertingEncodedPixel = $04;
kHardwareCursorDescriptorMajorVersion = $0001;
kHardwareCursorDescriptorMinorVersion = $0000;
TYPE
UInt32Ptr = ^UInt32;
HardwareCursorDescriptorRecPtr = ^HardwareCursorDescriptorRec;
HardwareCursorDescriptorRec = RECORD
majorVersion: UInt16;
minorVersion: UInt16;
height: UInt32;
width: UInt32;
bitDepth: UInt32;
maskBitDepth: UInt32;
numColors: UInt32;
colorEncodings: UInt32Ptr;
flags: UInt32;
supportedSpecialEncodings: UInt32;
specialEncodings: ARRAY [0..15] OF UInt32;
END;
HardwareCursorDescriptorPtr = ^HardwareCursorDescriptorRec;
CONST
kHardwareCursorInfoMajorVersion = $0001;
kHardwareCursorInfoMinorVersion = $0000;
TYPE
HardwareCursorInfoRecPtr = ^HardwareCursorInfoRec;
HardwareCursorInfoRec = RECORD
majorVersion: UInt16; { Test tool should check for kHardwareCursorInfoMajorVersion1 }
minorVersion: UInt16; { Test tool should check for kHardwareCursorInfoMinorVersion1 }
cursorHeight: UInt32;
cursorWidth: UInt32;
colorMap: CTabPtr; { nil or big enough for hardware's max colors }
hardwareCursor: Ptr;
reserved: ARRAY [0..5] OF UInt32; { Test tool should check for 0s }
END;
HardwareCursorInfoPtr = ^HardwareCursorInfoRec;
CONST
kVBLInterruptServiceType = 'vbl ';
kHBLInterruptServiceType = 'hbl ';
kFrameInterruptServiceType = 'fram';
TYPE
InterruptServiceType = ResType;
InterruptServiceIDType = UInt32;
InterruptServiceIDPtr = ^InterruptServiceIDType;
{$IFC FOR_SYSTEM7_ONLY }
FUNCTION VSLNewInterruptService(VAR serviceDevice: RegEntryID; serviceType: InterruptServiceType; serviceID: InterruptServiceIDPtr): OSErr; C;
{$ENDC}
{$IFC FOR_SYSTEM8_PREEMPTIVE }
FUNCTION VSLNewInterruptService(VAR serviceDevice: RegEntryRef; serviceType: InterruptServiceType; serviceID: InterruptServiceIDPtr): OSErr; C;
FUNCTION VSLWaitOnInterruptService(serviceID: InterruptServiceIDType; timeout: Duration): OSErr; C;
{$ENDC}
FUNCTION VSLDisposeInterruptService(serviceID: InterruptServiceIDType): OSErr; C;
FUNCTION VSLDoInterruptService(serviceID: InterruptServiceIDType): OSErr; C;
FUNCTION VSLPrepareCursorForHardwareCursor(cursorRef: UNIV Ptr; hardwareDescriptor: HardwareCursorDescriptorPtr; hwCursorInfo: HardwareCursorInfoPtr): BOOLEAN; C;
{$ALIGN RESET}
{$POP}
{$SETC UsingIncludes := VideoServicesIncludes}
{$ENDC} {__VIDEOSERVICES__}
{$IFC NOT UsingIncludes}
END.
{$ENDC}